public abstract class Component {
    public void setMediator(Mediator mediator) {
        this.mediator = mediator;
    }

    protected Mediator mediator;

    public abstract void changed();

    public abstract void update();

}
